//
//  YZMImageActionTableViewCell.m
//  YZMicroStock
//
//  Created by apple on 17/1/4.
//  Copyright © 2017年 cqjr. All rights reserved.
//

#import "YZMImageActionTableViewCell.h"

@interface YZMImageActionTableViewCell ()
@property(nonatomic, strong) UILabel *titleLabel;

@end

@implementation YZMImageActionTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    if (self=[super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor=[YZMAppStyle colorForWhite];
        [self createObject];
    }
    return self;
}

-(void)createObject{
    self.titleLabel=[YZMAppStyle labelWithMediumBlack];
    [self addSubview:_titleLabel];
    self.titleLabel.textAlignment=NSTextAlignmentCenter;
    [self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.width.height.top.bottom.equalTo(self);
    }];
}

-(void)setTitleString:(NSString *)titleString{
    _titleLabel.text=titleString;
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
